$OpenBSD: patch-lib_base_CMakeLists_txt,v 1.4 2015/05/12 09:37:03 sthen Exp $
--- lib/base/CMakeLists.txt.orig	Thu Mar 12 12:27:11 2015
+++ lib/base/CMakeLists.txt	Thu Mar 12 15:04:13 2015
@@ -45,8 +45,8 @@ add_library(base SHARED ${base_SOURCES})
 
 target_link_libraries(base ${CMAKE_DL_LIBS} ${Boost_LIBRARIES} ${OPENSSL_LIBRARIES} ${YAJL_LIBRARIES} mmatch socketpair)
 
-if(HAVE_LIBEXECINFO)
-    target_link_libraries(base execinfo)
+if(Backtrace_FOUND)
+  target_link_libraries(base ${Backtrace_LIBRARIES})
 endif()
 
 include_directories(${icinga2_SOURCE_DIR}/third-party/execvpe)
